package com.air.dao;

import com.air.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper {

    Integer insertOrder(Order order);

    Order getOrderById(@Param("orderId") int orderId,@Param("userId") long userId);



    Order getOrderByOrderId(@Param("orderId") int orderId);

    int updateOrderById(@Param("trade_no") String trade_no,@Param("out_trade_no") String out_trade_no);

    List<Order> getOrderList(long userId);

    Order getOrderByYiDaDui(@Param("fligth_id") int flightId, @Param("id") long id, @Param("cang") int cang);
}
